﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Web;
using DHQGHN.DAL.Models.DanhMuc;

namespace DHQGHN.Services.DanhMuc
{
     [ServiceContract]
    public interface IAdministrativeUnitExtService
    {
        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetAll"
            )]
        IEnumerable<DAL.Models.DanhMuc.ADM_UNIT_EXT> GetAll();

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetNameByAreaID/{AreaID}/{Type}"
            )]
        IEnumerable<Template> GetNameByAreaID(string AreaID, string Type);


        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetNameByAdmUnitExtID/{AdmUnitExtID}/{Levels}"
            )]
        IEnumerable<Template> GetNameByAdmUnitExtID(string AdmUnitExtID, string Levels);
    }
}